<html>
   <head>
<meta charset="utf-8"/>
<title></title>
<script>
     function post(){
                var url = "read.html?name="+escape(document.all.name.value);
url +="&password="+escape(document.all.password.value); 
window.location = url ;
     };
</script>
   </head>
   <body>
     姓名：<input type="text" name="name"/><br/>
     密码：<input type="text" name="password"/><br/>
     <input type="button" value="post" onClick="post()"/>
   </body>
</html>